arm: semihosting: fix up compile bugs
authorLinus Walleij <[email protected]>
Mon, 15 Dec 2014 10:05:56 +0000 (11:05 +0100)
committerTom Rini <[email protected]>
Mon, 29 Dec 2014 12:44:06 +0000 (07:44 -0500)
commit4e1ef15091b6f42ac13c22e3acc45a9bd9cce852
treeef5a316a28cc65bea10dafb60255a7a5bcb4deea
parent50b56394307f76afe5ed1fac885e6d792d432c58
arm: semihosting: fix up compile bugs

There is currently a regression when using newer ARM64 compilers
for semihosting: the way long types are inferred from context
is no longer the same.

The semihosting runtime uses long and size_t, so use this
explicitly in the semihosting code and interface, and voila:
the code now works again.

Tested with aarch64-linux-gnu-gcc: Linaro GCC 4.9-2014.09.

Cc: Darwin Rambo <[email protected]>
Cc: AKASHI Takahiro <[email protected]>
Cc: Mark Hambleton <[email protected]>
Cc: Tom Rini <[email protected]>
Acked-by: Steve Rae <[email protected]>
Suggested-by: Mark Hambleton <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
arch/arm/include/asm/semihosting.h
arch/arm/lib/semihosting.c